// Playlist.ts
export interface Playlist {
  id: number;
  name: string;
  coverImgUrl: string;
  trackCount: number;

}


export class Playlist {
  id: number = 0;
  name: string = '';
  coverImgUrl: string = '';
  // 添加播放量属性
  playCount: number = 0;
  // 可能需要的其他属性
  // trackCount?: number;
  description?: string;
  tags?: string[];
  createTime?: number;
  // ...其他属性

  constructor(params: Partial<Playlist> = {}) {
    Object.assign(this, params);
  }
}